package com.example.module_enterprise.adapter

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_enterprise.R
import com.yuwei.http.entity.EnterpriseDetailEntity

class EnterpriseDetailAdapter:BaseQuickAdapter<String,BaseViewHolder>(R.layout.detail_image_item) {
    override fun convert(holder: BaseViewHolder, item: String) {

            val imageView = holder.getView<ImageView>(R.id.detail_image)
            Glide.with(context).load(item).transform(RoundedCorners(20)).into(imageView)

    }
}